home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / man1 / iforncs / drm_admin.1 next >
Encoding:
Text File  |  1998-10-30  |  15.4 KB  |  265 lines

  1.  
  2.  
  3.  
  4. DRM_ADMIN(1)              User Commands              DRM_ADMIN(1)
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ddddrrrrmmmm____aaaaddddmmmmiiiinnnn - Data Replication Manager Administrative Tool
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////eeeettttcccc////nnnnccccssss////ddddrrrrmmmm____aaaaddddmmmmiiiinnnn [ ----vvvveeeerrrrssssiiiioooonnnn ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      The ddddrrrrmmmm____aaaaddddmmmmiiiinnnn tool administers servers  based  on  the  Data
  16.      Replication  Manager (DRM) such as ggggllllbbbbdddd, the replicated ver-
  17.      sion of the Global Location Broker (GLB).
  18.  
  19.      With ddddrrrrmmmm____aaaaddddmmmmiiiinnnn, you can inspect  or  modify  replica  lists,
  20.      merge  databases  to  force convergence among replicas, stop
  21.      servers, and delete replicas.
  22.  
  23.      The role of ddddrrrrmmmm____aaaaddddmmmmiiiinnnn is to administer  the  replication  of
  24.      databases,  not  to  change  the  data  they  contain.   For
  25.      instance, you can use ddddrrrrmmmm____aaaaddddmmmmiiiinnnn to merge two replicas of the
  26.      GLB  database,  but you must use llllbbbb____aaaaddddmmmmiiiinnnn to add a new entry
  27.      to the database.   Also,  although  ddddrrrrmmmm____aaaaddddmmmmiiiinnnn  can  stop  or
  28.      delete  a  GLB replica, you must invoke ggggllllbbbbdddd directly if you
  29.      want to start or create a replica.
  30.  
  31.      Once invoked, ddddrrrrmmmm____aaaaddddmmmmiiiinnnn enters an interactive mode, in which
  32.      it accepts the commands described below.
  33.  
  34. OOOOPPPPTTTTIIIIOOOONNNNSSSS
  35.      ----vvvveeeerrrrssssiiiioooonnnn
  36.           Display the version of NCK that this ddddrrrrmmmm____aaaaddddmmmmiiiinnnn  belongs
  37.           to, but do not start the tool.
  38.  
  39. CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS
  40.      Most  ddddrrrrmmmm____aaaaddddmmmmiiiinnnn  commands  operate  on  a   default   object
  41.      (_d_e_f_a_u_l_t__o_b_j)  at  a default host (_d_e_f_a_u_l_t__h_o_s_t).  Together,
  42.      _d_e_f_a_u_l_t__o_b_j and  _d_e_f_a_u_l_t__h_o_s_t  specify  a  default  replica.
  43.      Defaults  are  established by the sssseeeetttt command and are remem-
  44.      bered until changed by another sssseeeetttt.
  45.  
  46.      Currently, the only known object is ggggllllbbbb.
  47.  
  48.      Some ddddrrrrmmmm____aaaaddddmmmmiiiinnnn commands operate on a  host  other  than  the
  49.      default.  We identify this host as _o_t_h_e_r__h_o_s_t.
  50.  
  51.      The host name you supply as a _d_e_f_a_u_l_t__h_o_s_t or an  _o_t_h_e_r__h_o_s_t
  52.      takes  the form _f_a_m_i_l_y::::_h_o_s_t, where the host can be specified
  53.      either by its name or by its network address.  For  example,
  54.      ddddddddssss::::////////jjjjeeeeeeeevvvveeeessss,  ddddddddssss::::####111100001111aaaa....55557777ffff99995555, iiiipppp::::bbbbeeeerrrrttttiiiieeee, and iiiipppp::::####111199992222....5555....5555....5555
  55.      are acceptable host names.
  56.  
  57.      aaaaddddddddrrrreeeepppp _o_t_h_e_r__h_o_s_t
  58.           Add _o_t_h_e_r__h_o_s_t to the  replica  list  at  _d_e_f_a_u_l_t__h_o_s_t.
  59.           The  replica  at _d_e_f_a_u_l_t__h_o_s_t will propagate _o_t_h_e_r__h_o_s_t
  60.  
  61.  
  62.  
  63. NCS Administration        Last change:                          1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DRM_ADMIN(1)              User Commands              DRM_ADMIN(1)
  71.  
  72.  
  73.  
  74.           to all other replica lists for _d_e_f_a_u_l_t__o_b_j.
  75.  
  76.      cccchhhhrrrreeeepppp ----ffffrrrroooommmm _o_t_h_e_r__h_o_s_t ----ttttoooo _n_e_w__o_t_h_e_r__h_o_s_t
  77.           Change  the  network  address  for  _o_t_h_e_r__h_o_s_t  in  the
  78.           replica  list  at  _d_e_f_a_u_l_t__h_o_s_t to _n_e_w__o_t_h_e_r__h_o_s_t.  The
  79.           replica at _d_e_f_a_u_l_t__h_o_s_t will propagate this  change  to
  80.           all  other  replica  lists  for _d_e_f_a_u_l_t__o_b_j.  The cccchhhhrrrreeeepppp
  81.           command will fail if a replica of _d_e_f_a_u_l_t__o_b_j  is  run-
  82.           ning  at  _o_t_h_e_r__h_o_s_t  or  if  _o_t_h_e_r__h_o_s_t  is not on the
  83.           replica list at _d_e_f_a_u_l_t__h_o_s_t.
  84.  
  85.      ddddeeeellllrrrreeeepppp _o_t_h_e_r__h_o_s_t
  86.           Delete the replica of _d_e_f_a_u_l_t__o_b_j at  _o_t_h_e_r__h_o_s_t.   The
  87.           ddddeeeellllrrrreeeepppp command tells the replica at _o_t_h_e_r__h_o_s_t
  88.  
  89.           1.To propagate all of the entries  in  its  propagation
  90.             queue
  91.  
  92.           2.To propagate a delete request to all other  replicas,
  93.             causing  _o_t_h_e_r__h_o_s_t  to  be  deleted  from  all other
  94.             replica lists for _d_e_f_a_u_l_t__o_b_j
  95.  
  96.           3.To delete its copy of _d_e_f_a_u_l_t__o_b_j
  97.  
  98.           4.To stop running
  99.  
  100.      The ddddeeeellllrrrreeeepppp command returns you immediately to the  ddddrrrrmmmm____aaaaddddmmmmiiiinnnn
  101.      prompt,  but  the  actual deletion of the replica can take a
  102.      long time in configurations that are not stable and  intact.
  103.      You can check whether the daemon for the deleted replica has
  104.      stopped by listing the processes running on its host.
  105.  
  106.      iiiinnnnffffoooo Get  status   information   about   the   replica   for
  107.           _d_e_f_a_u_l_t__o_b_j at _d_e_f_a_u_l_t__h_o_s_t.
  108.  
  109.      llllrrrreeeepppp [ ----dddd ] [ ----cccclllloooocccckkkkssss ] [ ----nnnnaaaa ]
  110.           List replicas for _d_e_f_a_u_l_t__o_b_j as stored in the  replica
  111.           list at _d_e_f_a_u_l_t__h_o_s_t.
  112.  
  113.           The ----dddd option lists deleted as well as existing  repli-
  114.           cas.
  115.  
  116.           The ----cccclllloooocccckkkkssss option shows the current time on each  host
  117.           and indicates clock skew among the replicas.
  118.  
  119.           The ----nnnnaaaa option lists the network address of each host.
  120.  
  121.      mmmmeeeerrrrggggeeee { ----ffffrrrroooommmm | ----ttttoooo } _o_t_h_e_r__h_o_s_t
  122.           The mmmmeeeerrrrggggeeee command copies  entries  in  the  _d_e_f_a_u_l_t__o_b_j
  123.           database  and replica list from one replica to another.
  124.           It copies an entry if no corresponding entry exists  in
  125.           the  destination database or if the corresponding entry
  126.  
  127.  
  128.  
  129. NCS Administration        Last change:                          2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. DRM_ADMIN(1)              User Commands              DRM_ADMIN(1)
  137.  
  138.  
  139.  
  140.           in the destination database bears an earlier timestamp.
  141.  
  142.           A merge does not cause entries to be  propagated.   The
  143.           database  and  replica  list at the origination are not
  144.           changed.
  145.  
  146.           The ----ffffrrrroooommmm option copies entries  from  the  _d_e_f_a_u_l_t__o_b_j
  147.           database   and   replica  list  at  _o_t_h_e_r__h_o_s_t  to  the
  148.           _d_e_f_a_u_l_t__o_b_j database and replica list at _d_e_f_a_u_l_t__h_o_s_t.
  149.  
  150.           The ----ttttoooo option copies entries  from  the  database  and
  151.           replica  list  at  _d_e_f_a_u_l_t__h_o_s_t  to  the  database  and
  152.           replica list at _o_t_h_e_r__h_o_s_t.
  153.  
  154.           A mmmmeeeerrrrggggeeee ----ffffrrrroooommmm followed by a mmmmeeeerrrrggggeeee ----ttttoooo causes the repli-
  155.           cas at the two hosts to converge.
  156.  
  157.      mmmmeeeerrrrggggeeee____aaaallllllll
  158.           The mmmmeeeerrrrggggeeee____aaaallllllll command uses _d_e_f_a_u_l_t__h_o_s_t as the hub  for
  159.           a  global  merge  of all replicas for _d_e_f_a_u_l_t__o_b_j.  For
  160.           each host  on  the  replica  list  at  _d_e_f_a_u_l_t__h_o_s_t,  a
  161.           mmmmeeeerrrrggggeeee____aaaallllllll first does a mmmmeeeerrrrggggeeee ----ffffrrrroooommmm, then does a mmmmeeeerrrrggggeeee ----
  162.           ttttoooo.  All replicas of  _d_e_f_a_u_l_t__o_b_j  are  thereby  forced
  163.           into  a consistent state.  The mmmmeeeerrrrggggeeee____aaaallllllll operation does
  164.           not cause any entries to be propagated.
  165.  
  166.           You should do a mmmmeeeerrrrggggeeee____aaaallllllll
  167.  
  168.           +o  When a replica is purged
  169.  
  170.           +o  When a replica is reset
  171.  
  172.           +o  When a replica has been incommunicado for two  weeks
  173.             or more
  174.  
  175.           +o  When a replica (for example, when  its  database  is
  176.             destroyed by a disk failure)
  177.  
  178.      mmmmoooonnnniiiittttoooorrrr [ ----rrrr _n ]
  179.           This command causes ddddrrrrmmmm____aaaaddddmmmmiiiinnnn to read the clock of each
  180.           replica  of  _d_e_f_a_u_l_t__o_b_j  every _n minutes and to report
  181.           any clock skews or non-answering replicas.  If  you  do
  182.           not specify ----rrrr, the period is 15 minutes.
  183.  
  184.      ppppuuuurrrrggggeeeerrrreeeepppp _o_t_h_e_r__h_o_s_t
  185.           The ppppuuuurrrrggggeeeerrrreeeepppp command purges _o_t_h_e_r__h_o_s_t from the replica
  186.           list at _d_e_f_a_u_l_t__h_o_s_t.  The replica at _d_e_f_a_u_l_t__h_o_s_t then
  187.           propagates a delete request  to  the  replicas  at  the
  188.           hosts   remaining   on   its   list,  thereby  removing
  189.           _o_t_h_e_r__h_o_s_t   from   all   other   replica   lists   for
  190.           _d_e_f_a_u_l_t__o_b_j.    The  delete  request  is  not  sent  to
  191.           _o_t_h_e_r__h_o_s_t.
  192.  
  193.  
  194.  
  195. NCS Administration        Last change:                          3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. DRM_ADMIN(1)              User Commands              DRM_ADMIN(1)
  203.  
  204.  
  205.  
  206.           A ppppuuuurrrrggggeeeerrrreeeepppp can cause data to be lost and should only be
  207.           used  when a replica has We recommend strongly that you
  208.           do a mmmmeeeerrrrggggeeee____aaaallllllll operation after the ppppuuuurrrrggggeeeerrrreeeepppp to  prevent
  209.           the remaining replicas of the _d_e_f_a_u_l_t__o_b_j database from
  210.           becoming inconsistent.  If the purged replica is  still
  211.           running, it should be rrrreeeesssseeeetttt.
  212.  
  213.           We recommend that you use cccchhhhrrrreeeepppp (rather than aaaaddddddddrrrreeeepppp and
  214.           ppppuuuurrrrggggeeeerrrreeeepppp) to change entries on the replica list.
  215.  
  216.      qqqquuuuiiiitttt Quit the ddddrrrrmmmm____aaaaddddmmmmiiiinnnn session.
  217.  
  218.      rrrreeeesssseeeetttt _o_t_h_e_r__h_o_s_t
  219.           Reset the replica of _d_e_f_a_u_l_t__o_b_j at _o_t_h_e_r__h_o_s_t.
  220.  
  221.           The rrrreeeesssseeeetttt command tells the replica  at  _o_t_h_e_r__h_o_s_t  to
  222.           delete its copy of _d_e_f_a_u_l_t__o_b_j and to stop running.  It
  223.           does not cause _o_t_h_e_r__h_o_s_t to be deleted from any  other
  224.           replica  lists.  This command can cause data to be lost
  225.           unless a successful mmmmeeeerrrrggggeeee____aaaallllllll is done first.
  226.  
  227.      sssseeeetttt [ ----oooo _o_b_j__n_a_m_e ] ----hhhh _h_o_s_t__n_a_m_e
  228.           Set the default object and host.  All  subsequent  com-
  229.           mands  will  operate  on _o_b_j__n_a_m_e.  Subsequent commands
  230.           that do not specify a host will be sent  to  _h_o_s_t__n_a_m_e.
  231.           If  you  do  not specify the ----oooo option, ddddrrrrmmmm____aaaaddddmmmmiiiinnnn keeps
  232.           the current _d_e_f_a_u_l_t__o_b_j.
  233.  
  234.           If you use sssseeeetttt with the ----oooo option, ddddrrrrmmmm____aaaaddddmmmmiiiinnnn checks the
  235.           clocks  at  all  hosts  with  replicas of the specified
  236.           object.
  237.  
  238.      ssssttttoooopppp Stop the server for  _d_e_f_a_u_l_t__o_b_j  that  is  running  at
  239.           _d_e_f_a_u_l_t__h_o_s_t.
  240.  
  241. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  242.      The following example starts  ddddrrrrmmmm____aaaaddddmmmmiiiinnnn,  sets  the  default
  243.      object  to  ggggllllbbbb,  and  sets  the  default host to ////////mmmmaaaarrrrssss:  _$$$$
  244.      ////eeeettttcccc////nnnnccccssss////ddddrrrrmmmm____aaaaddddmmmmiiiinnnn _dddd_rrrr_mmmm______aaaa_dddd_mmmm_iiii_nnnn_:::: sssseeeetttt ----oooo ggggllllbbbb ----hhhh ddddddddssss::::////////mmmmaaaarrrrssss
  245.              _DDDD_eeee_ffff_aaaa_uuuu_llll_tttt  _oooo_bbbb_jjjj_eeee_cccc_tttt_::::  _gggg_llll_bbbb   _dddd_eeee_ffff_aaaa_uuuu_llll_tttt   _hhhh_oooo_ssss_tttt_::::   _dddd_dddd_ssss_::::_////_////_mmmm_aaaa_rrrr_ssss
  246.      _ssss_tttt_aaaa_tttt_eeee_:::: _iiii_nnnn _ssss_eeee_rrrr_vvvv_iiii_cccc_eeee
  247.              _CCCC_hhhh_eeee_cccc_kkkk_iiii_nnnn_gggg _cccc_llll_oooo_cccc_kkkk_ssss _oooo_ffff _gggg_llll_bbbb _rrrr_eeee_pppp_llll_iiii_cccc_aaaa_ssss
  248.              _dddd_dddd_ssss_::::_////_////_mmmm_aaaa_rrrr_ssss              _1111_9999_8888_7777_////_0000_4444_////_0000_9999_...._1111_7777_::::_0000_9999
  249.              _dddd_dddd_ssss_::::_////_////_pppp_llll_uuuu_tttt_oooo             _1111_9999_8888_7777_////_0000_4444_////_0000_9999_...._1111_7777_::::_0000_9999
  250.              _dddd_dddd_ssss_::::_////_////_mmmm_eeee_rrrr_cccc_uuuu_rrrr_yyyy           _1111_9999_8888_7777_////_0000_4444_////_0000_9999_...._1111_7777_::::_0000_7777
  251.  
  252. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  253.      _M_a_n_a_g_i_n_g _N_C_S _S_o_f_t_w_a_r_e
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261. NCS Administration        Last change:                          4
  262.  
  263.  
  264.  
  265.